package com.liang.springcloud.service.impl;

import com.liang.springcloud.dao.DeptDao;
import com.liang.springcloud.pojo.Dept;
import com.liang.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:liangli
 * @Date:2020/11/11 22:23
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public Dept queryById(Long id) {

        return deptDao.queryById(id);
    }

    @Override
    public List<Dept> queryAll() {

        return deptDao.queryAll();
    }
}
